package com.zzzzzz.topic.service;

import java.io.IOException;
import java.util.List;

import com.zzzzzz.account.model.User;
import com.zzzzzz.core.exception.NoSuchTopicException;
import com.zzzzzz.topic.model.AddTopicForm;
import com.zzzzzz.topic.model.Topic;

public interface TopicService {

	public void add(AddTopicForm addTopicForm, User user) throws IOException;

	public void edit(Topic topic);
	
	public void editStatus(String topicId, Integer status);

	public Topic findById(String topicId) throws NoSuchTopicException;
	
	public List<Topic> findByCategoryLb(String categoryLb, int start, int offset, boolean ascending);
	public List<Topic> findByCategoryId(String categoryId, int start, int offset, boolean ascending);
	
	public long findByCategoryIdCount(String categoryId);

}
